﻿using Order.Domain.Base;
using Order.Domain.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Order.Domain.OrderDomain
{
    /// <summary>
    /// 药品实体（处方明细）
    /// </summary>
    [Table("Drug")]
    public class Drug : BaseEntity
    {
        /// <summary>
        /// 处方Id
        /// </summary>
        public int? PrescriptionId { get; set; }

        /// <summary>
        /// 药品订单Id
        /// </summary>
        public int? DrugOrderId { get; set; }

        /// <summary>
        /// 药品名称
        /// </summary>
        public string? DrugName { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int? Num { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal? UnitPrice { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string? Specif { get; set; }

        /// <summary>
        /// 用法用量
        /// </summary>
        public string? Dosage { get; set; }

        /// <summary>
        /// 药品类型
        /// </summary>
        public DrugOrderTypeEnum? DrugOrderType { get; set; }
    }
}
